package com.hu.hutool.enums;

/**
 * @Author CazCen
 * @Date 2021/11/18 17:25
 */

public enum Light {

    /**
     * 红灯
     */
    RED,


    /**
     * 绿灯
     */
    GREEN,


    /**
     * 黄灯
     */
    YELLOW;


    private Integer color;


    Light() {
        this.color = 1 << ordinal();
    }


    public Integer getColor() {
        return this.color;
    }

}
